<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>星链</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <style>
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    }

    :root {
        --primary: #4361ee;
        --secondary: #3a0ca3;
        --accent: #4cc9f0;
        --light: #f8f9fa;
        --dark: #1d3557;
        --gray: #6c757d;
        --light-gray: #e9ecef;
        --border: #dee2e6;
        --success: #4ade80;
        --warning: #f59e0b;
        --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        --transition: all 0.3s ease;
    }

    body {
        background-color: #f5f7fa;
        color: #333;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* 顶部导航栏 */
    .header {
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 25px;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .logo-container {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .custom-logo {
        height: 40px;
        width: auto;
        object-fit: contain;
    }

    .logo-text {
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--dark);
    }

    .nav-links {
        display: flex;
        gap: 30px;
    }

    .nav-item {
        padding: 8px 0;
        position: relative;
        cursor: pointer;
        font-weight: 500;
        color: var(--gray);
    }

    .nav-item.active {
        color: var(--primary);
    }

    .nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--primary);
        border-radius: 3px;
    }

    .nav-item:hover {
        color: var(--primary);
    }

    .user-area {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .vip-badge {
        background: linear-gradient(135deg, #ffd700, #ff9800);
        color: #fff;
        padding: 5px 12px;
        border-radius: 30px;
        font-size: 0.85rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--accent), var(--primary));
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(67, 97, 238, 0.2);
    }

    /* 主内容区 */
    .main-content {
        display: flex;
        flex: 1;
    }

    /* 左侧菜单 */
    .sidebar {
        width: 240px;
        background: white;
        height: calc(100vh - 60px);
        position: sticky;
        top: 60px;
        padding: 25px 0;
        border-right: 1px solid var(--border);
        box-shadow: 3px 0 10px rgba(0, 0, 0, 0.02);
    }

    .menu-title {
        padding: 0 25px;
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 15px;
        color: var(--dark);
    }

    .menu-item {
        padding: 12px 25px;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        transition: var(--transition);
        color: var(--gray);
    }

    .menu-item:hover {
        background: rgba(67, 97, 238, 0.05);
        color: var(--primary);
    }

    .menu-item.active {
        background: rgba(67, 97, 238, 0.1);
        color: var(--primary);
        border-left: 4px solid var(--primary);
    }

    /* 右侧内容区 */
    .content-area {
        flex: 1;
        padding: 30px;
    }

    .content-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    .page-title {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--dark);
    }

    /* 企业信息卡片 */
    .info-card {
        background: white;
        border-radius: 12px;
        box-shadow: var(--card-shadow);
        padding: 25px;
        margin-bottom: 30px;
    }

    .card-title {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 20px;
        color: var(--dark);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .info-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .info-item {
        display: flex;
        flex-direction: column;
    }

    .info-label {
        font-size: 0.95rem;
        color: var(--gray);
        margin-bottom: 5px;
    }

    .info-value {
        font-size: 1.1rem;
        font-weight: 500;
    }

    .logo-preview {
        width: 120px;
        height: 120px;
        border: 1px dashed var(--border);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--gray);
        font-size: 0.9rem;
    }

    /* 表格样式 */
    .data-table {
        width: 100%;
        border-collapse: collapse;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--card-shadow);
    }

    .data-table th, .data-table td {
        padding: 15px;
        text-align: left;
        border-bottom: 1px solid var(--border);
    }

    .data-table th {
        background: var(--light);
        font-weight: 600;
        color: var(--dark);
    }

    .data-table tr:last-child td {
        border-bottom: none;
    }

    /* 操作按钮 */
    .action-buttons {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
    }

    .btn {
        padding: 8px 15px;
        border-radius: 6px;
        border: none;
        font-weight: 500;
        cursor: pointer;
        transition: var(--transition);
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .btn-primary {
        background: var(--primary);
        color: white;
    }

    .btn-outline {
        background: transparent;
        border: 1px solid var(--primary);
        color: var(--primary);
    }

    .btn-sm {
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    /* 分页 */
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }

    .page-info {
        color: var(--gray);
    }

    /* 响应式设计 */
    @media (max-width: 992px) {
        .sidebar {
            width: 200px;
        }

        .info-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px) {
        .nav-links {
            display: none;
        }

        .sidebar {
            width: 60px;
            padding: 25px 0;
        }

        .menu-title, .menu-item span {
            display: none;
        }

        .menu-item {
            justify-content: center;
            padding: 12px 0;
        }

        .content-area {
            padding: 20px;
        }
    }
  </style>
</head>
<body>
<!-- 顶部导航栏 -->
<div class="header">
  <div class="logo-container">
    <img src="logo1.jpg" alt="企业Logo" class="custom-logo">
    <div class="logo-text">星链</div>
  </div>

  <div class="nav-links">
    <div class="nav-item active" >我的企业</div>
    <div class="nav-item" onclick="window.location.href='bs.html'">背调查询</div>
    <div class="nav-item" onclick="window.location.href='fs.html'">人才档案管理</div>
    <div class="nav-item" onclick="window.location.href='vip.html'">会员开通</div>
  </div>

  <div class="user-area">

    <div class="user-avatar">管</div>
  </div>
</div>

<!-- 主内容区 -->
<div class="main-content">
  <!-- 左侧菜单 -->
  <div class="sidebar">
    <div class="menu-title">企业管理</div>
    <div class="menu-item active">
      <i class="fas fa-building"></i>
      <span>企业信息</span>
    </div>
  </div>

  <!-- 右侧内容区 -->
  <div class="content-area">
    <div class="content-header">
      <h1 class="page-title">我的企业</h1>
    </div>

    <!-- 企业信息 -->
    <div class="info-card">
      <h2 class="card-title">
        <i class="fas fa-info-circle"></i>
        企业信息
      </h2>
      <div class="info-grid">
        <div class="info-item">
          <div class="info-label">企业名称</div>
          <div class="info-value">开发</div>
        </div>
        <div class="info-item">
          <div class="info-label">企业LOGO</div>
          <div class="logo-preview">点击上传LOGO</div>
        </div>
        <div class="info-item">
          <div class="info-label">企业资源</div>
          <div class="info-value">无损</div>
        </div>
        <div class="info-item">
          <div class="info-label">企业发票</div>
          <div class="info-value">已设置</div>
        </div>
      </div>
    </div>

    <!-- 企业功能 -->
    <div class="info-card">
      <h2 class="card-title">
        <i class="fas fa-cog"></i>
        企业功能
      </h2>
      <div class="info-grid">
        <div class="info-item">
          <div class="info-label">公众号运营报表</div>
          <div class="info-value">未配置</div>
        </div>
        <div class="info-item">
          <div class="info-label">APP安装设置</div>
          <div class="info-value">未配置</div>
        </div>
        <div class="info-item">
          <div class="info-label">APP名称</div>
          <div class="info-value">未设置</div>
        </div>
        <div class="info-item">
          <div class="info-label">APP Logo</div>
          <div class="info-value">未上传</div>
        </div>
        <div class="info-item">
          <div class="info-label">Android下载地址</div>
          <div class="info-value">未设置</div>
        </div>
        <div class="info-item">
          <div class="info-label">IOS下载地址</div>
          <div class="info-value">未设置</div>
        </div>
        <div class="info-item">
          <div class="info-label">APP Scheme</div>
          <div class="info-value">未设置</div>
        </div>
      </div>
    </div>

    <!-- 企业用户 -->
    <div class="info-card">
      <h2 class="card-title">
        <i class="fas fa-users"></i>
        企业用户
      </h2>

      <div class="action-buttons">
        <div style="display: flex; gap: 10px;">
          <button class="btn btn-outline btn-sm">组织设置</button>
          <button class="btn btn-outline btn-sm">用户设置</button>
          <button class="btn btn-outline btn-sm">角色设置</button>
        </div>
        <div style="display: flex; gap: 10px;">
          <button class="btn btn-primary btn-sm">添加</button>
          <button class="btn btn-outline btn-sm">修改</button>
          <button class="btn btn-outline btn-sm">删除</button>
          <button class="btn btn-primary btn-sm">保存</button>
        </div>
      </div>

      <table class="data-table">
        <thead>
        <tr>
          <th>用户名称</th>
          <th>用户ID</th>
          <th>权限</th>
          <th>创建时间</th>
        </tr>
        </thead>
        <tbody>
        <tr>
          <td>张三</td>
          <td>564856874120123</td>
          <td>管理员</td>
          <td>2021-07-18 18:42:34</td>
        </tr>
        <tr>
          <td>李四</td>
          <td>675641337628456</td>
          <td>高级管理员</td>
          <td>2021-08-26 13:52:04</td>
        </tr>
        <tr>
          <td>王五</td>
          <td>654238567103563</td>
          <td>访客</td>
          <td>2021-10-26 19:36:38</td>
        </tr>
        <tr>
          <td>赵六</td>
          <td>964583156041756</td>
          <td>访客</td>
          <td>2021-11-04 20:06:43</td>
        </tr>
        </tbody>
      </table>

      <div class="pagination">
        <button class="btn btn-outline btn-sm">上一页</button>
        <div class="page-info">2/3</div>
        <button class="btn btn-outline btn-sm">下一页</button>
      </div>
    </div>
  </div>
</div>

<script>
  // 页面加载完成后执行
  document.addEventListener('DOMContentLoaded', function() {
      // 自定义Logo上传功能
      const logoUpload = document.createElement('input');
      logoUpload.type = 'file';
      logoUpload.accept = 'image/*';
      logoUpload.style.display = 'none';
      document.body.appendChild(logoUpload);

      // 点击Logo可更换
      document.querySelector('.custom-logo').addEventListener('click', function() {
          logoUpload.click();
      });

      // 企业LOGO上传
      const companyLogoUpload = document.createElement('input');
      companyLogoUpload.type = 'file';
      companyLogoUpload.accept = 'image/*';
      companyLogoUpload.style.display = 'none';
      document.body.appendChild(companyLogoUpload);

      document.querySelector('.logo-preview').addEventListener('click', function() {
          companyLogoUpload.click();
      });

      companyLogoUpload.addEventListener('change', function(e) {
          const file = e.target.files[0];
          if (file) {
              const reader = new FileReader();
              reader.onload = function(event) {
                  const logoPreview = document.querySelector('.logo-preview');
                  logoPreview.innerHTML = `<img src="${event.target.result}" style="width:100%;height:100%;object-fit:contain">`;
              }
              reader.readAsDataURL(file);
          }
      });
  });
</script>
</body>
</html>